/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.previous_flow.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 记录上次流量数据Entity
 * @author xlp
 * @version 2019-05-20
 */
public class PreviousFlow extends DataEntity<PreviousFlow> {
	
	private static final long serialVersionUID = 1L;
	private Integer lastEnterFlow;		// 上一次该车道进车时流量
	private Integer lastLeaveFlow;		// 上一次该车道离开时流量
	private String lastHeartBeat;		// 上一次心跳
	private String laneNum;		// 车道id
	
	public PreviousFlow() {
		super();
	}

	public PreviousFlow(String id){
		super(id);
	}

	public Integer getLastEnterFlow() {
		return lastEnterFlow;
	}

	public void setLastEnterFlow(Integer lastEnterFlow) {
		this.lastEnterFlow = lastEnterFlow;
	}
	
	public Integer getLastLeaveFlow() {
		return lastLeaveFlow;
	}

	public void setLastLeaveFlow(Integer lastLeaveFlow) {
		this.lastLeaveFlow = lastLeaveFlow;
	}
	
	@Length(min=0, max=64, message="上一次心跳长度必须介于 0 和 64 之间")
	public String getLastHeartBeat() {
		return lastHeartBeat;
	}

	public void setLastHeartBeat(String lastHeartBeat) {
		this.lastHeartBeat = lastHeartBeat;
	}
	
	@Length(min=1, max=64, message="车道id长度必须介于 1 和 64 之间")
	public String getLaneNum() {
		return laneNum;
	}

	public void setLaneNum(String laneNum) {
		this.laneNum = laneNum;
	}
	
}